<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class ProfilAffiche extends QuickTemplate {

    private $user;
    private $rows;

    function __construct($user, $rows) {
        parent::__construct();
        $this->user = $user;
        $this->rows = $rows;
    }

    public function execute() {
        ?>

        <?php
        foreach ($this->rows as $key => $val) {
            ?> 
            <div align="left">
                PHOTO
            </div>
            <div align="center">
                <table>
                    <tr>  
                        <th>Pseudo:</th>
                        <td>
                            <?php echo $val->user_name ?> 
                        </td>     
                    </tr>
                    <tr>
                        <th>Nom:</th>
                        <td>    
                            <?php echo $val->user_real_name ?>
                        </td>   
                    </tr>
                    <tr>
                        <th>Email:</th>
                        <td>
                            <?php echo $val->user_email ?>
                        </td>
                    </tr>
                </table>
            </div>    
            <div align="right">
            <?php 
               foreach ($this->rows as $key => $val) {
            ?> 
                <a href="http://www.solidaritychain.com.dev/index.php/Special:profil?action=edit&&user_name=<?php echo $val->user_name?>">Modifier</a>
            </div>

            <?php
        }
        }
    }

}

